<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>{$site_seo_title} {$site_name}</title>
	<meta name="keywords" content="{$site_seo_keywords}" />
	<meta name="description" content="{$site_seo_description}">
	<tc_include file="Public:head" />
	<link href="__TMPL__Public/assets/css/index.css" rel="stylesheet">
</head>
<body>
	<!---头部开始--->
	<tc_include file="Public:header"/>
	<!---头部结束--->
	<!---banner开始--->
	<php>
		$home_slides=sp_getslide("index_ad");
		$s_count = count($home_slides);
	</php>
	<div class="banner">
		<div class="slidead">			
				<ul class="hd">
				<for start="0" end="$s_count">
					<li></li>
				</for>
				</ul>			
			<div class="bd">
			
				<ul>
				<foreach name="home_slides" item="vo">
					<li><a href="{$vo.slide_url}" target="_blank"><img src="{:sp_get_asset_upload_path($vo['slide_pic'])}" /></a></li>
				</foreach>
				</ul>
			</div>				
			<a class="prev" href="javascript:void(0)"><i class="fa fa-chevron-left"></i></a>
			<a class="next" href="javascript:void(0)"><i class="fa fa-chevron-right"></i></a>
		</div>
	</div>
	<script type="text/javascript">
		jQuery(".slidead").slide({mainCell:".bd ul",autoPlay:true});
	</script>
	<!---banner结束--->
	<!---中间部分开始--->
	<php>
		$new_goods = sp_get_goods('2','','8');		
	</php>
	<div class="k-h-bd">
		<div class="k-h-box k-row">
			<div class="hd">
				<h3>新品</h3>
			</div>
			<div class="bd">
				<div class="picScroll-left">
					<div class="hd">
						<a class="prev"><i class="fa fa-chevron-left"></i></a>
						<a class="next"><i class="fa fa-chevron-right"></i></a>																		
					</div>
					<div class="bd">
						<ul class="picList">
							<foreach name="new_goods" item="vo">
							<li>
								<div class="pic"><a href="{:U('Goods/article/index',array('g_id'=>$vo['goods_id']))}" title="{$vo.goods_name}" target="_blank"><img src="{:sp_get_asset_upload_path($vo['goods_img'])}" /></a></div>
								<div class="title">
									<a href="{:U('Goods/article/index',array('g_id'=>$vo['goods_id']))}" title="{$vo.goods_name}" class="name" target="_blank">{$vo.goods_name|msubstr=0,12,'utf-8',''}</a>
									<p class="xh">￥{$vo.shop_price}</p>
								</div>
							</li>	
							</foreach>					
						</ul>
					</div>
				</div>
				<script type="text/javascript">
				jQuery(".picScroll-left").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"left",autoPlay:true,vis:5,trigger:"click"});
				</script>
			</div>
		</div>
	</div>
		<php>
			$c_cat = sp_recommend_cat('8');
			$c_goods = sp_get_goods('1','8','6');	
			$c_cat_list = sp_child_cat($c_cat['id']);	
		</php>
	<div class="k-h-bd co-box">
		<div class="k-h-box k-row">
			<div class="hd">
				<h3 class="fl">箱包配件</h3>
				<foreach name="c_cat_list" item="val">
				<a href="{:U('Goods/list/index',array('id'=>$val['id']))}" class="r-tt">{$val.name}</a>
				</foreach>
				<a href="{:U('Goods/list/index',array('id'=>$c_cat['id']))}" class="r-tt">更多 > </a>
				<div class="clear"></div>
			</div>
			
			<div class="bd b-bd">
				<div class="left fl">
					<a href="{:U('Goods/list/index',array('id'=>$c_cat['id']))}" target="_blank"><img src="{:sp_get_asset_upload_path($c_cat['cat_img'])}" alt="" /></a>
				</div>
				<div class="right fl">
					<ul>
						<foreach name="c_goods" item="vo">
						<li>
							<a href="{:U('Goods/article/index',array('g_id'=>$vo['goods_id']))}" title="{$vo.goods_name}" target="_blank"><img src="{:sp_get_asset_upload_path($vo['goods_img'])}" alt="" /></a>
							<div class="title">
								<p class="name"><a href="{:U('Goods/article/index',array('g_id'=>$vo['goods_id']))}" title="{$vo.goods_name}" target="_blank">{$vo.goods_name|msubstr=0,30,'utf-8',''}</a></p>
								<p class="xh">￥{$vo.shop_price}</p>
							</div>
						</li>
						</foreach>
					</ul>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	</div>
		<php>
			$c_cat2 = sp_recommend_cat('2');
			$c_goods2 = sp_get_goods('1','2','6');	
			$c_cat_list2 = sp_child_cat($c_cat2['id']);	
		</php>
	<div class="k-h-bd co-box">
		<div class="k-h-box k-row">
			<div class="hd">
				<h3 class="fl">服装</h3>				
				<a href="{:U('Goods/list/index',array('id'=>$c_cat2['id']))}" class="r-tt">更多 > </a>
				<foreach name="c_cat_list2" item="val">
				<a href="{:U('Goods/list/index',array('id'=>$val['id']))}" class="r-tt">{$val.name}</a>
				</foreach>
				<div class="clear"></div>
			</div>
			
			<div class="bd b-bd">
				<div class="left fl">
					<a href="{:U('Goods/list/index',array('id'=>$c_cat2['id']))}" target="_blank"><img src="{:sp_get_asset_upload_path($c_cat2['cat_img'])}" alt="" /></a>
				</div>
				<div class="right fl">
					<ul>
						<foreach name="c_goods2" item="vo">
						<li>
							<a href="{:U('Goods/article/index',array('g_id'=>$vo['goods_id']))}" title="{$vo.goods_name}" target="_blank"><img src="{:sp_get_asset_upload_path($vo['goods_img'])}" alt="" /></a>
							<div class="title">
								<p class="name"><a href="{:U('Goods/article/index',array('g_id'=>$vo['goods_id']))}" title="{$vo.goods_name}" target="_blank">{$vo.goods_name|msubstr=0,30,'utf-8',''}</a></p>
								<p class="xh">￥{$vo.shop_price}</p>
							</div>
						</li>
						</foreach>
					</ul>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	</div>
		<php>
			$c_cat3 = sp_recommend_cat('1');
			$c_goods3 = sp_get_goods('1','1','6');	
			$c_cat_list3 = sp_child_cat($c_cat3['id']);	
		</php>
	<div class="k-h-bd co-box">
		<div class="k-h-box k-row">
			<div class="hd">
				<h3 class="fl">手机数码</h3>				
				<a href="{:U('Goods/list/index',array('id'=>$c_cat3['id']))}" class="r-tt">更多 > </a>
				<foreach name="c_cat_list3" item="val">
				<a href="{:U('Goods/list/index',array('id'=>$val['id']))}" class="r-tt">{$val.name}</a>
				</foreach>
				<div class="clear"></div>
			</div>
			
			<div class="bd b-bd">
				<div class="left fl">
					<a href="{:U('Goods/list/index',array('id'=>$c_cat3['id']))}" target="_blank"><img src="{:sp_get_asset_upload_path($c_cat3['cat_img'])}" alt="" /></a>
				</div>
				<div class="right fl">
					<ul>
						<foreach name="c_goods3" item="vo">
						<li>
							<a href="{:U('Goods/article/index',array('g_id'=>$vo['goods_id']))}" title="{$vo.goods_name}" target="_blank"><img src="{:sp_get_asset_upload_path($vo['goods_img'])}" alt="" /></a>
							<div class="title">
								<p class="name"><a href="{:U('Goods/article/index',array('g_id'=>$vo['goods_id']))}" title="{$vo.goods_name}" target="_blank">{$vo.goods_name|msubstr=0,30,'utf-8',''}</a></p>
								<p class="xh">￥{$vo.shop_price}</p>
							</div>
						</li>
						</foreach>
					</ul>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	</div>
	<php>
			$c_cat4 = sp_recommend_cat('7');
			$c_goods4 = sp_get_goods('1','7','7');	
			$c_cat_list4 = sp_child_cat($c_cat4['id']);	
		</php>
	<div class="k-h-bd co-box">
		<div class="k-h-box k-row">
			<div class="hd">
				<h3 class="fl">美妆个护</h3>				
				<a href="{:U('Goods/list/index',array('id'=>$c_cat4['id']))}" class="r-tt">更多 > </a>
				<foreach name="c_cat_list4" item="val">
				<a href="{:U('Goods/list/index',array('id'=>$val['id']))}" class="r-tt">{$val.name}</a>
				</foreach>
				<div class="clear"></div>
			</div>
			
			<div class="bd b-bd">
				<div class="left fl">
					<a href="{:U('Goods/list/index',array('id'=>$c_cat4['id']))}" target="_blank"><img src="{:sp_get_asset_upload_path($c_cat4['cat_img'])}" alt="" /></a>
				</div>
				<div class="right fl">
					<ul>
						<foreach name="c_goods4" item="vo">
						<li>
							<a href="{:U('Goods/article/index',array('g_id'=>$vo['goods_id']))}" title="{$vo.goods_name}" target="_blank"><img src="{:sp_get_asset_upload_path($vo['goods_img'])}" alt="" /></a>
							<div class="title">
								<p class="name"><a href="{:U('Goods/article/index',array('g_id'=>$vo['goods_id']))}" title="{$vo.goods_name}" target="_blank">{$vo.goods_name|msubstr=0,30,'utf-8',''}</a></p>
								<p class="xh">￥{$vo.shop_price}</p>
							</div>
						</li>
						</foreach>
					</ul>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	</div>
	<div class="k-h-bd co-box">
	</div>
	<!---中间部分结束--->
	<style type="text/css">
		.m-ft{margin-top:0;}
	</style>
	<!---底部开始--->
	<tc_include file="Public:footer"/>
	<!---底部结束--->
	<tc_include file="Public:scripts" />
</body>
</html>